import http from '../utils/http'

const getMaterialList = (params) => http.get("api/material?" + params);
const readMaterial = (id) => http.get("api/material/" + id);
const addMaterial = (data) => http.post("api/material", data);
const updateMaterial = (id, data) => http.put("api/material/" + id, data);
const deleteMaterial = (id) => http.delete("api/material/" + id);
const getMaterialId = () => http.get("api/material/getId");

export {
    getMaterialList, readMaterial, addMaterial, updateMaterial, deleteMaterial, getMaterialId
}